/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.blitzcoder.collide.engine.parser;

import de.blitzcoder.collide.util.Log;
import java.io.Serializable;

/**
 *
 * @author blitzcoder
 */
public class CodeParameter implements Serializable {
    private String name;
    private String value;
    private String type;
    
    public CodeParameter(String name,String type) {
        this(name,type,"");
    }
    
    public CodeParameter(String name,String type,String value) {
        this.name = name;
        this.value = value;
        this.type = type;
    }
    
    public String getType() {
        return type;
    }
    
    public String getName() {
        return name;
    }
    
    public String getValue() {
        return value;
    }

    public boolean equals(Object o) {
        if (o instanceof CodeParameter) {
            CodeParameter p = (CodeParameter) o;
            return p.getName().equals(name) && p.getValue().equals(value) && p.getType().equals(type);
        }
        return false;
    }
    
}
